#include<iostream>
using namespace std;
template<class T>
T Add(const T& left, const T& right)
{
	return left + right;
}
int main()
{
	int a1 = 10, a2 = 20;
	double b1 = 1.1, b2 = 2.2;
	cout << Add<int>(a1, a2) << endl;
	cout << Add<double>(b1, b2) << endl;

	return 0;
}